package pjkanri.controller;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import pjkanri.dao.DAOException;
import pjkanri.entity.Issure_detail;
import pjkanri.service.Issure_DetailService;

/**
 * Servlet implementation class Issure_DetailList
 */
@WebServlet("/Issure_DetailList")
public class Issure_DetailList extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
  
	/**
	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		List<Issure_detail> issure_detailList =null;
		
		try {
			issure_detailList = Issure_DetailService.getIssue_DetaiList();
		} catch (DAOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		request.setAttribute("issue_detailList", issure_detailList);
		String forwardPath = "issue_detailList.jsp";
		
		// 転送処理
		request.getRequestDispatcher(forwardPath).forward(request, response);

	}

}
